//Implementation file - Armor.cpp
//private:
//

#include <iostream>
#include "Armor.h"

using namespace std;

Armor::Armor() 
{
	bonus = 0;
	penalty = 0;
	maxDexterity = 10;
	name = "unknown";
}

int Armor::getBonus()
{
	return bonus;
}

void Armor::setBonus(int b) 
{
	if (b > 0)
		bonus = b;
}

int Armor::getPenalty() 
{
	return penalty;
}

void Armor::setPenalty(int p) 
{
	if (p <= 0)
		penalty = p;
}

int Armor::getMaxDexterity() 
{
	return maxDexterity;
}

void Armor::setMaxDexterity(int md)
{
	if (md >= 0)
		maxDexterity = md;
	else
		maxDexterity = 0;
}

string Armor::getName() 
{
	return name;
}

void Armor::setName(string title) 
{
	name = title;
}

